package com.sxx.mallcart.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Auther: sunxx
 * @Date: 2024/8/19 - 08 - 19 - 1:30
 * @Description: com.sxx.mallcart.config
 * @version: 1.0
 */
@Configuration
public class MyWebViewConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/cartList.html").setViewName("/cartList");
        registry.addViewController("/success.html").setViewName("/success");
    }
}